all: run
#TODO what is zmuldefs
run: run.o cup.o gem.o board.o highscore.o mancala_ai.o
	g++ run.o cup.o gem.o board.o highscore.o mancala_ai.o -o run  -Xlinker -zmuldefs

run.o: run.cpp
	g++ -c run.cpp

cup.o: cup.cpp cup.h
	g++ -c cup.cpp

gem.o: gem.cpp gem.h
	g++ -c gem.cpp

board.o: board.cpp board.h
	g++ -c board.cpp

highscore.o: highscore.cpp highscore.h
	g++ -c highscore.cpp

mancala_ai.o: mancala_ai.cpp mancala_ai.h
	g++ -c mancala_ai.cpp

clean: 
	rm -f *.o
